<template>
	<view class="cu-list menu" :class="[menuBorder?'sm-border':'',menuCard?'card-menu margin-top':'']">
	<view class="cu-item  margin-top" :class="menuArrow?'arrow':''">
		<view class='content'>
			<text class='icon-warn text-green'></text>
			<text class='text-grey'>关于</text>
		</view>
		<view class='action'>
			<text class='text-grey text-sm'>xuejss</text>
		</view>
	</view>
	
	<view class="cu-item" :class="menuArrow?'arrow':''">
		<view class='content'>
			<text class='icon-warn text-green'></text>
			<text class='text-grey'>版本</text>
		</view>
		<view class='action'>
			<text class='text-grey text-sm'>152-1.07</text>
		</view>
	</view>	

	<view class="cu-item" :class="menuArrow?'arrow':''" @click="upgrade()">
		<view class='content'>
			<text class='icon-warn text-green'></text>
			<text class='text-grey'>检查更新</text>
		</view>
		<view class='action'>
			
			<button class='cu-btn round bg-green shadow'>
		    <text class='icon-upload'></text> 查看</button>
		</view>
	</view>		

	<view class="cu-item margin-top" :class="menuArrow?'arrow':''">
	    <view class='content'>
			<text class='icon-btn text-green'></text>
			<text class='text-grey'>更新时间轴</text>
		</view>
				<view class='action'>
					<button class='cu-btn round bg-green shadow'>
					<text class='icon-upload'></text> 查看</button>
				</view>
	</view>	
	
		<view class="padding flex flex-direction">

			<button class='cu-btn bg-red margin-tb-sm lg' @click="loginout">退出登录</button>
		</view>	
	
	
	
	
	
	
	</view>
</template>

<script>
		export default {
		data() {
			return {
			
				menuBorder: '',
				menuArrow: '',
				menuCard: ''
	
			};
		},
		methods:{
			
		loginout(){
			
		 uni.removeStorage({
         key: 'user_data',
         success: function (res) {
         console.log('success');
		 uni.showToast({title: '退出成功',icon:"none"});
		  uni.switchTab({
          url: '/pages/index/index'
          });
         }
         });	
			
			
			
		},
		
		upgrade(){
 uni.navigateTo({
 	url:'/pages/update/index'
 })			
		}
			
		}

	
	}
</script>

<style>
</style>
